package com.server.questionbank.snframe.service.HomeworkService;

import com.server.questionbank.snframe.domain.Homework.HomeworkExercises;
import com.server.questionbank.snframe.domain.Homework.HomeworkPublish;
import com.server.questionbank.snframe.domain.Homework.THomework;

import java.util.List;

public interface HomeworkService {
    // 获取作业列表
    public List<THomework> getHomeworkList(Long targetId, String homeworkType);
    // 获取已发布的作业列表
    public List<HomeworkPublish> getPublishHomeworkList(Long targetId, String homeworkType);
    // 获取指定作业的作业发布信息
    public List<HomeworkPublish> getPublishHomeworkByHomeworkId(Long homeworkId);
    // 创建作业
    public Boolean setHomework(THomework homework);
    // 修改作业的习题列表
    public Boolean updateHomeworkExercises(List<HomeworkExercises> homeworkExercises);
    // 获取作业的习题列表
    public List<HomeworkExercises> getHomeworkExercises(Long homeworkId);
    // 获取作业发布信息
    public HomeworkPublish getHomeworkPublishById(Long publishId);
    // 发布作业
    public Boolean publishHomework(HomeworkPublish homeworkPublish);
    // 删除作业
    public Boolean deleteHomework(Long homeworkId);
    // 取消发布作业
    public Boolean cancelPublishHomework(Long publishId);
    // 提交作业
    public Boolean submitHomework(Long homeworkId, Long userId);
}
